﻿package com.toncen.samepms.basic.dao;

import com.toncen.samepms.basic.domain.OrganizationType;
import com.toncen.samepms.common.AbstractDao;

/**
 * 描述：组织类型表BASIC_ORGANIZATION_TYPE的dao文件
 * 
 * @author tch
 */
public class OrganizationTypeDao extends AbstractDao<OrganizationType> {

	public OrganizationTypeDao() {
	}

	/**
	 * 根据组织删除
	 * 
	 * @param organizationId
	 * @return
	 * @throws Exception
	 */
	public int delByOrganizationId(long organizationId) throws Exception {
		return getSqlMap().delete(getStatement("delByOrganizationId"), organizationId);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.comit.common.db.BaseDao#initialize()
	 */
	@Override
	protected void initialize() {
		setStatementPrefix("OrganizationType");
		setStatementDivision(".");
	}
}
